package com.test.service;

import com.test.entity.File;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;

/**
 * 文件上传的一些接口
 */
public interface FileService {
    List<File> findFiles(Integer userId);

    void saveFile(MultipartFile file, HttpSession session) throws IOException;

    void findByFileId(Integer id,String openStyle, HttpServletResponse response) throws IOException;

    void deleteFile(Integer id) throws FileNotFoundException;
}
